﻿@model SpaceNeedle.City6473.Web.Data.Models.UsersAuthentication
@using SpaceNeedle.City6473.Web.Data.Models

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    var staticContent = ViewBag.StaticContent as WebSiteContent;
    ViewBag.Title = staticContent.Users.LoginTitle;
}
@*@using (Html.BeginForm(
    "Login",
    "Users",
    new { ReturnUrl = Request.QueryString["ReturnUrl"] },
    FormMethod.Post,
    new
    {
        @id = "formCreate",
        @class = "form-horizontal"
    }))*@
@using (Html.BeginForm())
{ 
        <div class="editor-label">
            <label for="Email" class="label_heading">@staticContent.Users.Email</label>
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Email, new { @class = "form-control" })
            @Html.ValidationMessageFor(model => model.Email)
            <div class="clear"></div>
        </div>
        <br />
        <div class="editor-label">
            <label for="Password" class="label_heading">@staticContent.Users.Password</label>
        </div>
        <div class="editor-field">
            @Html.PasswordFor(model => model.Password, new { @class = "form-control" })
            @Html.ValidationMessageFor(model => model.Password)
            <div class="clear"></div>
        </div>

        <br />
        <div>
            <input type="submit" class="btn btn-default" value="@staticContent.Users.SignIn" />
        </div>
}